projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b5d3b8
)
(imenu--generic-function): Use markers for positions.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 19 Sep 1996 04:25:40 +0000
(
04:25
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 19 Sep 1996 04:25:40 +0000
(
04:25
+0000)
lisp/imenu.el
patch
|
blob
|
history
diff --git
a/lisp/imenu.el
b/lisp/imenu.el
index 323a279efefb4af13cb2efaa9d43c2a3fb8e13a9..876f6f2f06154a903ea9676de82015f2995d89d6 100644
(file)
--- a/
lisp/imenu.el
+++ b/
lisp/imenu.el
@@
-640,8
+640,9
@@
pattern.
(index (caddr pat)))
(if (and (not found) ; Only allow one entry;
(looking-at regexp))
- (let ((beg (ma
tch-beginning index
))
+ (let ((beg (ma
ke-marker
))
(end (match-end index)))
+ (set-marker beg (match-beginning index))
(setq found t)
(push
(cons (buffer-substring-no-properties beg end) beg)